from __future__ import print_function

import grpc

import grpc_test_pb2
import grpc_test_pb2_grpc


def run():
    channel = grpc.insecure_channel('localhost:50051')
    stub = grpc_test_pb2_grpc.grpc_testServiceClsStub(channel)
    response = stub.grpc_test(grpc_test_pb2.grpc_testRequest(req='test'))
    print(response.res)


if __name__ == '__main__':
    run()
